//
//  HomeTableHeadView.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/10/14.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "HomeTableHeadView.h"

@implementation HomeTableHeadView

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self=[super initWithFrame:frame]) {
        
        self=[[[NSBundle mainBundle]loadNibNamed:@"HomeTableHeadView" owner:self options:nil]lastObject];
        
        self.frame=frame;
        
        self.bagImageView.image=[UIImage imageWithColor:TBColorAppTheme];
        
        self.headHeightCanst.constant=180*SCREEN_WIDTH/320.0;
        
        self.LoginHeight.constant=80*SCREEN_WIDTH/375.0;
        
        self.LoginWidth.constant=80*SCREEN_WIDTH/375.0;
        
        self.ViewHeight.constant=80*SCREEN_WIDTH/375.0;
        
        self.LogImageView.layer.cornerRadius=80*SCREEN_WIDTH/375.0/2.0;
        
        self.LogImageView.layer.masksToBounds=YES;
        
        self.ImageBottom.constant=(180*SCREEN_WIDTH/320.0-44-self.LoginHeight.constant)/2.0;
        
        self.Viewbottom.constant=(180*SCREEN_WIDTH/320.0-44-self.LoginHeight.constant)/2.0;
    }
    
    return self;
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
